import request from '../../service/index.js'

// export const getAllCircleChat = data => {
// 	return request({
// 		path: '/circle',
// 		method: 'POST',
// 		data
// 	})
// }

/*首页*/
export const index = data => {
	return request({
		path: '/api/car/lists',
		method: 'GET',
		data,
		module: 'car'
	})
}
/*品牌列表*/
export const brandlist = data => {
	return request({
		path: '/api/car/brandlist',
		method: 'GET',
		data,
		module: 'car'
	})
}
/*搜索*/
export const search = data => {
	return request({
		path: '/api/car/indexSearch',
		method: 'GET',
		data,
		module: 'car'
	})
}
/*网约车列表*/
export const cheap = data => {
	return request({
		path: '/api/car/getNetCar',
		method: 'GET',
		data,
		module: 'car'
	})
}

/*新车发布*/
export const newCar = data => {
	return request({
		path: '/api/car/release',
		method: 'GET',
		data,
		module: 'car'
	})
}

/*品牌列表*/
export const brand = data => {
	return request({
		path: '/api/car/brandvlist',
		method: 'GET',
		data,
		module: 'car'
	})
}

/*车系*/
export const vehicle = data => {
	return request({
		path: '/api/car/vehicle',
		method: 'GET',
		data,
		module: 'car'
	})
}

/*车系筛选*/
export const vehicleFilter = data => {
	return request({
		path: '/api/car/getDCars',
		method: 'GET',
		data,
		module: 'car'
	})
}

/*单个车型*/
export const carDetail = data => {
	return request({
		path: '/api/car/vehicleType',
		method: 'GET',
		data,
		module: 'car'
	})
}

/*猜你喜欢*/
export const carLike = data => {
	return request({
		path: '/api/car/youLike',
		method: 'GET',
		data,
		module: 'car'
	})
}

/*车型经销商询价*/
export const askshop = data => {
	return request({
		path: '/api/car/revDistributor',
		method: 'GET',
		data,
		module: 'car'
	})
}

/*车型经销商询价*/
export const getRevCars = data => {
	return request({
		path: '/api/car/getRevCars',
		method: 'GET',
		data,
		module: 'car'
	})
}

/*询底价提交*/
export const submitask = data => {
	return request({
		path: '/api/car/revDistributor',
		method: 'GET',
		data,
		module: 'car'
	})
}

/*城市*/
export const city = data => {
	return request({
		path: '/assets/js/city/city.json',
		method: 'GET',
		data,
		module: 'car'
	})
}

/*车系详细外观*/
export const carStyle = data => {
	return request({
		path: '/api/car/styles',
		method: 'GET',
		data,
		module: 'car'
	})
}
/*询价获取底价*/
export const revPlat = data => {
	return request({
		path: '/api/car/revPlat',
		method: 'POST',
		data,
		module: 'car'
	})
}
/*免费咨询*/
export const free = data => {
	return request({
		path: '/api/car/contact',
		method: 'post',
		data,
		module: 'car'
	})
}
/*品牌分页数据*/
export const brandPage = data => {
	return request({
		path: '/api/car/getBrand',
		method: 'GET',
		data,
		module: 'car'
	})
}

/*支付*/
export const wPay = data => {
	return request({
		path: '/api/car/wPay',
		method: 'POST',
		data,
		module: 'car'
	})
}

/*在售城市*/
export const getSaleCity = data => {
	return request({
		path: '/api/car/getSaleCity',
		method: 'GET',
		data,
		module: 'car'
	})
}

export const getPhoneList = data =>{
	return request({
		path:'/api/index/carPhone',
		method:'GET',
		data,
		module: 'car'
	})
}
